<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Data-Table 表格</title>
    <link rel="stylesheet" data-th-href="@{/static/plugins/layui/css/layui.css}">
    <link rel="stylesheet" data-th-href="@{/static/css/style.css}">
    <link rel="icon" data-th-href="@{/static/images/code.png}">
</head>
<body class="body">
<blockquote class="site-text layui-elem-quote">
    <!-- 工具集 -->
    <div class="my-btn-box">
    <span class="fl">
        <a class="layui-btn btn-add btn-default" id="btn-add">添加</a>
        <a class="layui-btn btn-add btn-default" id="btn-refresh"><i class="layui-icon">&#xe669;</i></a>
    </span>
    <form style="margin:10px;float: right" class="layui-form">
        <div style="float: left">
            <div th:if="${siteList.size()} > 0" class="layui-input-inline" style="margin: 0 auto;">
                <select lay-filter="site" lay-search name="siteId" lay-verify="required">
                    <option th:each="site:${siteList}" th:text="${site.siteName}" th:value="${site.siteId}" th:selected="${site.siteId == siteId}"></option>
                </select>
            </div>

            <div th:if="${siteList.size()} == 0" style="color: red;">请建立站点后进行操作！</div>
        </div>
    </form>
    </div>
</blockquote>
<!-- 表格 -->
<table id="statisticsList" lay-filter="statisticsList"></table>
<!-- 表格操作按钮集 -->
<script type="text/html" id="barOption">
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/javascript" data-th-src="@{/static/plugins/layui/layui.js}"></script>
<script type="text/javascript" data-th-src="@{/static/js/statistics/list.js}"></script>
</body>
</html>